$(function() {
	$.ajax({
		url:'/queryDept',
		type:'get',
		success:function (res) {
			var htmls="";
			for(var i=0;i<res.length;i++){
				htmls+="<option value="+res[i].deptno+">"+res[i].dname+"</option>";
			}
			$("#deptno").empty()
			$("#deptno").append(htmls);
		}
	})
		});
//根据id修改user
function updUserById(){
	var userForm=$("#updUserFrom").serialize();
	$.post("add",userForm, function(data, stuct) {

		window.location.href="manager/index.jsp";

	});


}